/*
 * Copyright 2007-2008, www.jsemantic.org, www.adolfoestevez.com,
 * http://semanticj2ee.blogspot.com/ 
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jsemantic.core.mock;

import java.util.Collection;

import org.jsemantic.core.session.SemanticException;

/**
 * The Interface MockRuleSession.
 */
public interface MockRuleSession {
	
	/**
	 * Execute.
	 * 
	 * @param o the o
	 * 
	 * @return the collection
	 */
	public Collection execute(Object o);

	/**
	 * Execute.
	 * 
	 * @param o the o
	 * 
	 * @return the collection
	 */
	public Collection execute(Collection o);

	/**
	 * Insert.
	 * 
	 * @param fact the fact
	 * 
	 * @return the object
	 */
	public Object insert(Object fact);

	/**
	 * Insert.
	 * 
	 * @param facts the facts
	 * 
	 * @return the collection
	 */
	public Collection insert(Collection facts);

	/**
	 * Modify retract.
	 * 
	 * @param handle the handle
	 */
	public void modifyRetract(Object handle);

	/**
	 * Modify insert.
	 * 
	 * @param handle the handle
	 * @param arg the arg
	 */
	public void modifyInsert(Object handle, Object arg);

	/**
	 * Fire all rules.
	 * 
	 * @throws SemanticException the semantic exception
	 */
	public void fireAllRules() throws SemanticException;

	/**
	 * Dispose.
	 */
	public void dispose();
	
}
